var $ = require('../../lib/jquery');
var util = require('./common/util');
var nav = require('./common/nav');
var _header = require('./common/header');
var template =require('../tpl/template');
var minHeight = require('./common/minHeight');
minHeight.init();
new nav();
new _header();
var show_phone;
show_phone = {
  fetch: function (medicalid) {
    var _this = this;
    util.fetch('api/tel/queryObject',{
      sign:1
    },{
      timeout:10000
    }).then(function(res){
      _this.render(res.data);
    }).fail(function(res){
        console.log('这种接口都有报错。。。！！！',res);
      })
  },
  render: function (data) {
    var tpl = template('phone',{data: data});
    $('.js_phone').html(tpl);
  },
  bindevent: function (medicalid) {
    $('.js_index').on('click',function(){
      location.href="./index.html";
    })
  }
}
show_phone.bindevent()
show_phone.fetch();